from rest_framework.response import Response
from rest_framework.views import APIView

from leisurely.serializer.recommended_position import RecommendedSerializer
from six_it.models import Recruit


class LatestpositionAPIView(APIView):

    def get(self, request):

        recruit = Recruit.objects.all()
        serializers = RecommendedSerializer(recruit, many=True)

        return Response(serializers.data)
